<?php global $trns_options, $trns; ?>
<?php /*If it is mainpage */ if(is_home() ) { include( TEMPLATEPATH . '/Ad300x250MainPageTop.php' ); } ?>
<?php /*If it is NOT mainpage */ if(!is_home() ) { include( TEMPLATEPATH . '/Ad300x250InnerPageTop.php' ); } ?>
<h2 class="mostRecentTitle"><?php echo $trns["mrecent"]; ?></h2>
<div id="sidebarTabs">
	<ul id="sidebarTabs_title">
		<li><a href="#" class="selected" rel="sidebarTabs_commented"><?php echo $trns["opinions"]; ?></a></li>
		<li><a href="#" rel="sidebarTabs_newly_added"><?php echo $trns["posts"]; ?></a></li>
	</ul>

	<div id="sidebarTabs_body">
		<ol id="sidebarTabs_commented">
			<?php if (function_exists('get_recent_comments')) { ?>
			<?php get_recent_comments(); ?>
			<?php } ?>	
		</ol>
	
		<ol id="sidebarTabs_newly_added">
			<?php get_archives('postbypost',$trns_options["recentPosts"]); ?>
		</ol>
	</div><!-- /sidebarTabs_body -->
					
	<script type="text/javascript">
	var sidebarTabs=new ddtabcontent("sidebarTabs")
	sidebarTabs.setpersist(true)
	sidebarTabs.setselectedClassTarget("link")
	sidebarTabs.init()
	</script>
</div><!-- /sidebarTabs -->